Repository navigation
T1.1 (7/8): read the project roster from Authentik until T3.1 is deployed - #178
Open
SuperNova-W wants to merge 1 commit into
Open
SuperNova-W wants to merge 1 commit into
SuperNova-W wants to merge 1 commit into
Conversation
…oyed People Portal's T3.1 projects API is not deployed yet. With HORIZON_ROSTER_SOURCE=authentik, the peopleportal resource builds the same payload from the same Authentik groups: - root PROJECT groups and their Leadership and Engineering subteams; - per-group role titles; - a Python port of People Portal's normalizeRole and projectSubteamContext. The payload goes through the same parse_project_sources validation. The default stays peopleportal. HORIZON_INCLUDE_ARCHIVED (off by default) treats a season's archived projects and archived Gitea repositories as active. It is for one-off runs over a finished season such as Spring 2026, whose teams were archived after the season. This also adds a placeholder SPRING 2026 window (2026-01-26 to 2026-05-15).
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
People Portal's T3.1 projects API is not deployed yet. With
HORIZON_ROSTER_SOURCE=authentik, the peopleportal resource builds the
same payload from the same Authentik groups:
projectSubteamContext.
The payload goes through the same parse_project_sources validation. The
default stays peopleportal.
HORIZON_INCLUDE_ARCHIVED (off by default) treats a season's archived
projects and archived Gitea repositories as active. It is for one-off
runs over a finished season such as Spring 2026, whose teams were
archived after the season. This also adds a placeholder SPRING 2026
window (2026-01-26 to 2026-05-15).
This is the T1.1 implementation from the
final-integrationbranch, split into PRs under 500 lines. The code is unchanged from the version that filled the test Supabase, except that the assets use master's plain asset keys and groups, and the tests are split into one file per PR.Stack
Track 1 (T1.1), stacked on the Track 4 stack (#156–#170). Review and merge in order; each PR shows only its own change.
t4/7c-staging-runner(Track 4 staging (3/3): Run the ranking graph end to end on staging and check it #170), the top of the Track 4 stack. When Track 4 staging (3/3): Run the ranking graph end to end on staging and check it #170 merges and its branch is deleted, GitHub moves PR 1 ontomaster.t1/1a-source-rowsproject and pull request source rows and the People Portal payloadt1/1b-people-portal-clientPeople Portal client, semester settings and Gitea login resolutiont1/1c-gitea-pr-sourcesGitea organization repositories, PRs, reviews and review requestst1/1d-persist-sourcesthe six source tables and their atomic upsertt1/1e-source-assetssource assets, the ingest_project_sources job and blame run requestst1/1f-source-checksblocking source checks; a project with no repository only warnst1/1g-authentik-rosterread the project roster from Authentik until T3.1 is deployed ← this PRt1/1h-fixture-runnerlocal fixture run of the source graphTesting
./nx run horizon-dag:checkpasses on this branch (pytest and ruff); every branch of the stack was checked on its own. The database tests ran against a local Postgres 16 (TEST_POSTGRES_URL,HORIZON_TEST_DATABASE_URL); without them they are skipped.scripts/run_t1_1_fixture.pyran the realingest_project_sourcesjob end to end: all six tables filled, the run manifest written and all three checks passed.horizon/.envhas expired. It was checked round-trip from the rows on the test Supabase.Size: 6 files changed, 386 insertions(+), 5 deletions(-).